package net.stogi.unicore.beyond.ui.client.taskeditor.taskoutline;

import net.stogi.unicore.beyond.api.model.InputGroup;

import com.google.gwt.event.shared.GwtEvent;

public class InputGroupRemovedEvent extends GwtEvent<InputGroupRemovedHandler> {

	public static final GwtEvent.Type<InputGroupRemovedHandler> TYPE = new GwtEvent.Type<InputGroupRemovedHandler>();

	private InputGroup inputGroup;
	
	public InputGroupRemovedEvent(InputGroup inputGroup) {
		this.inputGroup = inputGroup;
	}

	@SuppressWarnings("unused")
	private InputGroupRemovedEvent() {}

	@Override
	public Type<InputGroupRemovedHandler> getAssociatedType() {
		return TYPE;
	}

	public InputGroup getInputGroup() {
		return inputGroup;
	}

	public void setInputGroup(InputGroup inputGroup) {
		this.inputGroup = inputGroup;
	}

	@Override
	protected void dispatch(InputGroupRemovedHandler handler) {
		handler.onInputGroupRemoved(this);
	}
}
